import Vue from 'vue'
import Vuex from 'vuex'

// import user from './module/user'
// import app from './module/app'
import iViewTheme from 'iview-layout-themes'

import createPersistedState from 'vuex-persistedstate'
// Vue.use(iViewTheme)
// Vue.use(createPersistedState)
const app = iViewTheme.util.app

const user = iViewTheme.util.user
Vue.use(Vuex)
export default new Vuex.Store({
  plugins: [createPersistedState({
    storage: window.sessionStorage
  })],
  state: {
    //
  },
  mutations: {
    //
  },
  actions: {
    //
  },
  modules: {
    user,
    app
  }
})
